package com.sojson.config.jasypt;

import org.jasypt.encryption.StringEncryptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.sojson.util.encrypt.bothway.alike.jasypt.JasyptUtil;

/**
 * 配置文件加密配置类
 *
 * @author liu
 * @date 2022-02-11
 */
@Configuration
public class JasyptConfig {

    @Bean
    public StringEncryptor jasyptStringEncryptor() {
        return JasyptUtil.ENCRYPTOR;
    }

}